import { request } from "@/http/axios"

// 获取图文列表列表
export function getArticleList(data) {
  return request({
    url: "article/list",
    method: "post",
    data,
    headers: {
      "Content-Type": "multipart/form-data"
    }
  })
}

// 新增图文列表列表
export function addArticleList(data) {
  return request({
    url: "article/add",
    method: "post",
    data,
    headers: {
      "Content-Type": "multipart/form-data"
    }
  })
}

// 修改图文列表列表
export function updateArticleList(data) {
  return request({
    url: "article/update",
    method: "post",
    data,
    headers: {
      "Content-Type": "multipart/form-data"
    }
  })
}

// 删除图文列表列表
export function deleteArticleList(id) {
  return request({
    url: `article/delete/${id}`,
    method: "post",
  })
}
